<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
    <title>Mostrar</title>
</head>
<body>
<CENTER><h2>Consultas Historicas</h2></CENTER>
<table border = "1" width="80%" cellpadding="10" table-layout="auto" align="center">
    <tr>
        <th>nombre</th>
        <th>apellidoM</th>
        <th>apellidoP</th>
        <th>celular</th>
        <th>correo</th>
        <th>direccion</th>
        <th>rut</th>
        <th>dv</th>
    </tr>
    <c:forEach items="${Form.consultas}" var="consultas" varStatus="status">
        <tr>
            <td>${consultas.nombre}</td>
            <td>${consultas.apellido_m}</td>
            <td>${consultas.apellido_p}</td>
            <td>${consultas.celular}</td>
            <td>${consultas.correo}</td>
            <td>${consultas.direccion}</td>
            <td>${consultas.rut}</td>
            <td>${consultas.dv}</td>
        </tr>
    </c:forEach>
</table> 
<br/>
<input type="button" value="Back" onclick="javascript:window.location='http://localhost:8083/SpringRESTadministracion/menu.html'"/>
</body>
</html>